<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="utf-8">
		<title>搜索结果</title>
		<link rel="stylesheet" th:href="@{/layui/css/layui.css}" />
		<link rel="stylesheet" type="text/css" th:href="@{/layui/css/common.css}" />
		<link rel="stylesheet" type="text/css" th:href="@{/layui/css/blogcss/blog-search.css}" />

	</head>
	<body>
	<!-- 公共头部 -->
	<div th:replace="FrontPages/common/head::head(n=2)" name="headFrame"></div>
		<div class="blog-index">
			<div class="blog-head">
				<span>搜索结果</span>
			</div>
			<!-- 博客-->
			<div class="blog-index-box">
				<div class="blog-index-main">
					<!-- 功能 -->
					<div class="blog-index-button">
						<div class="blog-pulish">
							<span style="font-size: 16px;font-weight: bold;">排列方式</span>
							<span class="blog-sort">按时间</span>
							<span class="blog-sort sort-this">按访问量</span>
						</div>
					</div>

					<!-- 博客列表 -->
					<div class="blog-index-list">
						<ul>
							<li th:if="${blogs!=null}" th:each="blog,blogStat:${blogs}">
								<div class="blog-list-content">
									<a th:href="@{'/User/userexh/'+${bloguser.get(blogStat.index).uid}}">
										<img th:src="${bloguser.get(blogStat.index).img}?:@{/layui/images/head-pic/head2.jpg}" />
									</a>
								</div>
								<div class="blog-list-status">
									<a th:href="@{'/Blog/blogdetail/'+${blog.bid}}"><h3 th:text="${blog.title}"></h3></a>
									<div class="blog-bor"></div>
									<div class="list-status-content">
										<span th:utext="${blog.content}"></span>
									</div>
									<span th:id="time" th:text="${blog.date}">2019-6-8</span>
									<div class="status">
										<i class="layui-icon">&nbsp;</i>
										<span th:text="${blog.likeNumber}">66 &nbsp;|</span>
										<i class="layui-icon">&nbsp;</i>
										<span th:text="${blog.collectionNumber}">546 &nbsp;|</span>
										<!--<i class="layui-icon">&nbsp;</i>-->
										<!--<span>7</span>-->
									</div>
								</div>
							</li>

						</ul>
						<div th:id="blog-list"></div>
					</div>
				</div>

				<!-- 历史记录 -->
				<div class="blog-index-class">
					<div class="blog-class-head">
						<span>历史记录</span>
						<span th:id="all-clean">全部清除</span>
					</div>
					<div class="blog-history">
						<ul>
							<li th:if="${shistory!=null}" th:each="his:${shistory}" th:value="${his.sid}">
								<a  th:href="@{'/searchbyhis/'+${his.content}}" th:text="${his.content}"></a>
								<i class="layui-icon">&#x1006;</i> </li>
						</ul>
						<div class="no-history">
							<span th:id="bless-left">这里没有任何</span>
							<span th:id="bless-right">历史记录哦！</span>
						</div>
					</div>
				</div>
			</div>
		</div>
		</div>

		<!--公共尾部-->
		<div th:replace="FrontPages/common/bottom::bottom" name="bottomFrame"></div>
		<script type="text/jscript" th:src="@{/layui/layui.js}"></script>
		<script type="text/jscript" th:src="@{/layui/lay/js/blog-search.js}"></script>
		<!-- 背景特效 -->
		<script th:src="@{/layui/lineEffects.js}"></script>
	</body>
</html>
